﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using TyMES.Model.Record;


namespace TyMES.ViewModel.Record.MaterialPDVMs
{
    public partial class MaterialPDTemplateVM : BaseTemplateVM
    {
        [Display(Name = "产线号")]
        public ExcelPropety LineCode_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.LineCode);
        [Display(Name = "工序号")]
        public ExcelPropety OperationCode_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.OperationCode);
        [Display(Name = "工序名称")]
        public ExcelPropety OperationName_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.OperationName);
        [Display(Name = "SN")]
        public ExcelPropety CurrentSN_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.CurrentSN);
        [Display(Name = "同工位物料SN")]
        public ExcelPropety AnotherSN_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.AnotherSN);
        [Display(Name = "生产数据名")]
        public ExcelPropety PDname_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.PDname);
        [Display(Name = "生产数据编码")]
        public ExcelPropety PDcode_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.PDcode);
        [Display(Name = "生产数据结果")]
        public ExcelPropety result_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.result);
        [Display(Name = "生产数据值")]
        public ExcelPropety PDdata_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.PDdata);
        [Display(Name = "所属工单")]
        public ExcelPropety orderCode_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.orderCode);
        [Display(Name = "所属排程")]
        public ExcelPropety schduleCode_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.schduleCode);
        [Display(Name = "上传时间")]
        public ExcelPropety uploadTime_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.uploadTime);
        [Display(Name = "上传工厂mes")]
        public ExcelPropety uploadFlag_Excel = ExcelPropety.CreateProperty<MaterialPD>(x => x.uploadFlag);

	    protected override void InitVM()
        {
        }

    }

    public class MaterialPDImportVM : BaseImportVM<MaterialPDTemplateVM, MaterialPD>
    {

    }

}
